package models

import "gorm.io/gorm"

type Shop struct {
	gorm.Model
	Name     string  `gorm:"type:varchar(30)" json:"name"`
	Price    float64 `gorm:"type:decimal(10,2)" json:"price"`
	Shuliang int     `gorm:"type:int" json:"shuliang"`
	Num      int     `gorm:"type:int" json:"num"`
	ShId     int     `gorm:"type:int" json:"sh_id"`
	Sh       Sh      `gorm:"foreignKey:ShId"`
}
type Sh struct {
	gorm.Model
	Name string `gorm:"type:varchar(30)" json:"name"`
}
